/**
 * 
 */
package edu.up.firesawakening;

/**
 * @author Matt Delaney
 * @author Viet Phan
 */
public class RangedUnit extends Unit {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1207285439565203270L;

	/**
	 * Nothing unique here. Using a subclass for easier graphics.
	 * 
	 * @param healthIn
	 * @param damageIn
	 * @param armorIn
	 * @param moveRangeIn
	 * @param attackRangeIn
	 * @param playerIn
	 */
	public RangedUnit(int healthIn, int damageIn, int armorIn, int moveRangeIn,
			int attackRangeIn, int playerIn) {
		super(healthIn, damageIn, armorIn, moveRangeIn, attackRangeIn, playerIn);
	}

	/**
	 * creates a clone of the ranged unit. Used in game creation.
	 */
	public RangedUnit clone() {
		RangedUnit unit = new RangedUnit(m_maxHealth, m_atkPow, m_armor,
				m_moveRange, m_attackRange, m_player);
		unit.setHealth(m_health);
		unit.setAttackAvailable(m_attackAvailable);
		unit.setMovesLeft(m_movesLeft);
		return unit;
	}

}
